//
//  TextSearcherPanel.h
//  LabanBrowser
//
//  Created by -Xh- on 3/12/13.
//  Copyright (c) 2013 VNG. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
@protocol TextSearcherPanelDelegate <NSObject>

@optional
-(void)onNextTextSearchResult;
-(void)onPrevTextSearchResult;
-(void)onSearchText:(NSString*)_text;
-(void)onCloseSearchPanel;
@end
@class SGPageViewController;
@interface TextSearcherPanel : UIView <UITextFieldDelegate>
@property (strong, nonatomic) IBOutlet UIButton *closeBT;
@property (strong, nonatomic) IBOutlet UITextField *searchTF;
@property (strong, nonatomic) IBOutlet UIButton *prevBT;
@property (weak, nonatomic) IBOutlet UILabel *resultLB;
@property (strong, nonatomic) IBOutlet UIButton *nextBT;
@property (nonatomic) id<TextSearcherPanelDelegate> delegate;
@property (nonatomic) SGPageViewController* browser;
- (IBAction)onClose:(id)sender;
- (IBAction)toPrev:(id)sender;
- (IBAction)toNext:(id)sender;
-(void)initializeWithPosititionY:(double)_y;
-(void)close;
-(void)display;
-(void)hide;
-(BOOL)isVisible;
-(void)relocalize;
-(void)reloadTheme;
-(void)updateChrome;
@end
